<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    new Promise((resolve) => {
      resolve();
    })
     a .then(() => {
        new Promise((resolve) => {
          resolve();
        })
          .then(() => {
            console.log(1);
          })
          .then(() => {
            console.log(2);
          })
          .then(() => {
            console.log(3.1);
          });
      })
     b .then(() => {
        console.log(1.1);
        new Promise((resolve) => {
          resolve();
        })
          .then(() => {
            new Promise((resolve) => {
              resolve();
            })
              .then(() => {
                console.log(4);
              })
              .then(() => {
                console.log(6);
              });
          })
          .then(() => {
            console.log(5);
          });
      })
     c  .then(() => {
        console.log(3);
      });

    console.log(0);
  </script>
</html>
